package com.java.miaosha.vo;

import com.java.miaosha.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author jiangli
 * @date 2019/8/30 22:02
 */
@Data
public class LoginVO {
	@NotEmpty(message = "手机号码不能为空")
	@Length(min = 11,max = 11)
	@IsMobile  //自定义校验注解
	private String mobile;
	@NotEmpty(message = "密码不能为空")
	@Length(min = 4,max = 32)
	private String password;
}
